-- GENERATED SPELL FOR [Thornfang Venomspitter] --


function spell0_19350(pUnit, Event) --@Ravage,n/a--
pUnit:FullCastSpellOnTarget(33781,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19350', 2314, 1)
end

function spell1_19350(pUnit, Event) --@Venom Spit,n/a--
pUnit:FullCastSpellOnTarget(6917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19350', 12500, 1)
end

function Sorts_19350(pUnit, Event)
local choix_sorts_19350 = math.random(0, 1)
if choix_sorts_19350 == 0 then
pUnit:RegisterEvent('spell0_19350', 1, 1)
end
if choix_sorts_19350 == 1 then
pUnit:RegisterEvent('spell1_19350', 1, 1)
end
end

function mob19350_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19350', math.random(1500, 3000), 1)
end

function mob19350_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19350_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19350_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19350, 1, 'mob19350_Action')
RegisterUnitEvent(19350, 2, 'mob19350_Leave')
RegisterUnitEvent(19350, 3, 'mob19350_Kill')
RegisterUnitEvent(19350, 4, 'mob19350_Die')
